package com.example.dbsample.annotation;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.dbsample.model.bo.OperateType;
import com.example.dbsample.model.entity.BaseEntity;

import java.lang.annotation.*;

@Documented
@Retention(value = RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
public @interface RecordChange {
    OperateType operate();

    Class<? extends BaseMapper<? extends BaseEntity>> mapper();

    String idKey() default "id";

    String idType() default "number";

    String operateDesc();

    String module();

    String requestType() default "POST";
}
